package cn.yunhe.biz;

import cn.yunhe.dao.AdminMapper;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

public class AdminService {
    SqlSession session = SqlSessionFactoryUtil.getSession();
    AdminMapper adminMapper  = session.getMapper(AdminMapper.class);
    public int addMin(Admin admin){
        int flag = adminMapper.addMin(admin);
        session.commit();
        return flag;
    }

}
